<?php
//Khai bao namespace
namespace Template\Controller;

//Load lớp AbstractActionController vào CONTROLLER
use Zend\Mvc\Controller\AbstractActionController;
use Zend\Mvc\Controller\Plugin\Params;

//Load lớp ViewModel vào CONTROLLER
use Zend\View\Model\ViewModel;

class IndexController extends AbstractActionController
{
    public function init() {
        parent::init();

        //some common code for every controllers in this module
//         $data = $this->getEvent()->getRouteMatch()->getParam('action');
//         var_dump($data); die;
    }

    public function indexAction() {
//         $data = $this->getEvent()->getRouteMatch()->getParam('controller');
//         var_dump($data); die;

        $this->layout('layout/home');
    }

    public function aboutAction() {

//         $data = $this->getEvent()->getRouteMatch()->getParam('action');
//         var_dump($data); die;

        $this->layout('layout/home');
    }

    public function contactAction(){

       $this->layout('layout/home');
    }

    public function hairstyleAction(){

       $this->layout('layout/home');
    }

    public function newsAction(){

       $this->layout('layout/home');
    }
}